﻿<Page x:Class="TreeBuilder.Help.SavingTheTreePage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Help="clr-namespace:TreeBuilder.Help" xmlns:Controls="clr-namespace:Elderos.Controls;assembly=Elderos.Controls" mc:Ignorable="d" 
      d:DesignHeight="800" d:DesignWidth="640"
	Title="Saving the tree">
    <Page.Resources>
        <ResourceDictionary Source="HelpStyles.xaml"/>
    </Page.Resources>
    <Grid>
        <Controls:HelpMasterPage>
            <Controls:HelpMasterPage.Title>Saving the tree</Controls:HelpMasterPage.Title>
            <Controls:HelpMasterPage.Content>
                <RichTextBox BorderThickness="0" IsReadOnly="True">
                    <FlowDocument>
                        <Paragraph Margin="0">
                            There are two general ways of saving your tree.
                        </Paragraph>
                        <Paragraph Style="{StaticResource HeaderStyle}" Margin="0">
                            Reopenable tree format
                        </Paragraph>
                        <Paragraph Margin="0,5,0,0">
                            Indeed, reopenable tree format is a specific xml format, so it's human friendly.
                            I decided to make a separate extension (*.tree) to make it easy to open create tree files with double-click.
                            When you save a tree to the *.tree format, you can open it later.
                            You can even change the saved file manually or generate it programmatically.
                        </Paragraph>
                        <Paragraph Style="{StaticResource HeaderStyle}" Margin="0">
                            Image formats
                        </Paragraph>
                        <Paragraph Margin="0,5,0,0">
                            There are currently three supported image formats: png, jpeg and bitmap. I don't recommend jpeg and bmp formats.
                            Bmp format isn't being compressed at all, so the file size becomes huge.
                            Jpeg format uses lossy compression, so you'll become a smoothy picture.
                            To feel the difference between jpeg and png, look at the image below:
                        </Paragraph>
                        <BlockUIContainer>
                            <Image Height="350" Source="pack://application:,,,/Help/jpg_vs_png.png"/>
                        </BlockUIContainer>
                    </FlowDocument>
                </RichTextBox>
            </Controls:HelpMasterPage.Content>
        </Controls:HelpMasterPage>
    </Grid>
</Page>
